package com.gzhryc.system.dao.enums;

/**
 * 用户序列
 * @author 张浩
 * @version 0.1.0
 */
public class ManagerEnum {

	public enum Type {
		
		Admin(1,"管理员"),SuperAdmin(99,"超级管理员");
		
		private Integer index;
		private String note;
		
		Type(Integer index,String note){
			this.index = index;
			this.note = note;
		}

		public Integer index() {
			return index;
		}

		public String note() {
			return note;
		}
		
		public static String note(Integer index){
			Type[] temp = Type.values();
			for(int i=0;i<temp.length;i++){
				Type item = temp[i];
				if(item.index.equals(index)){
					return item.note;
				}
			}
			return null;
		}
	}
}
